﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
using System.Data;
using Model;

namespace BLL
{
    public class GroupBuyingUserBO
    {
        public GroupBuyingUserBO() { }

        GroupBuyingUserDAO dao = new GroupBuyingUserDAO();

       

		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int ID)
		{
            return dao.Exists(ID);
		}


		/// <summary>
		/// 增加一条数据
		/// </summary>
		public int Add(GroupBuyingUser model)
		{
            return dao.Add(model);
		}
		/// <summary>
		/// 更新一条数据
		/// </summary>
		public int Update(GroupBuyingUser model)
		{
           return  dao.Update(model);
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public void Delete(int ID)
		{
             dao.Delete(ID);
		}


		/// <summary>
		/// 得到一个对象实体
		/// </summary>
        public GroupBuyingUser GetModel(string FromUserName)
		{

            return dao.GetModel(FromUserName);
		}

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public GroupBuyingUser GetModel(int ID)
        {
            return dao.GetModel(ID);
        }

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
            return dao.GetList(strWhere);
		}

		/// <summary>
		/// 获得前几行数据
		/// </summary>
		public DataSet GetList(int Top,string strWhere,string filedOrder)
		{
            return dao.GetList(Top, strWhere, filedOrder);
		}

		
    }
}
